package com.prs.crm.domain;

import java.util.Date;

import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

import com.prs.crm.domain.hr.Person;

/**
 * 领域模型参考实现
 * @author prs.chenzhi
 *
 */
@SuppressWarnings("serial")
@MappedSuperclass
public abstract class BaseEntity  implements java.io.Serializable{
	
	/**
	 * 记录时间(创建时间)
	 */
	private Date recordTime;
	/**
	 * 修改时间
	 */
	private Date modifyTime;
	/**
	 * 记录人
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	private Person recorder;
	/**
	 * 状态位
	 * 正常 草稿 回收 
	 */
	private Integer sign;

	public void setSign(Integer sign) {
		this.sign = sign;
	}

	public Integer getSign() {
		return sign;
	}

	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}

	public Date getRecordTime() {
		return recordTime;
	}



	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setRecorder(Person recorder) {
		this.recorder = recorder;
	}

	public Person getRecorder() {
		return recorder;
	}


}
